<!--<?php
print <<<EOT
-->

<script src="css/edit.js"></script>
<script>
<!--

function addWishlist(id, code) {
    url = "wishlist_view.php?act=add&pid="+id+"&code="+code;
    document.getElementById('addwishlistiframe').src=url;
}

function validate(tform) {

    var id_ary = $js_id_ary_str;
    var qty_flag = 0;
    
    for (var i=0; i<id_ary.length; i++) {
        
        if (document.all('p_num['+id_ary[i]+']').value != '' && isDigit(document.all('p_num['+id_ary[i]+']').value) && parseInt(document.all('p_num['+id_ary[i]+']').value) > 0) {
            qty_flag = 1;            
        }       
    }
    
    if (qty_flag == 0) {
        alert('Please enter the order qty !');
        return false;
    }
    
    return true;
   
}

//-->
</script>

        <tr>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="1" alt=""></td>
          <td bgcolor="FFFFFF" width="720" align="left" valign="top"><div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div>
            <table width="720" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="150" background="./images/nav/jf_nav_main_bkgd.gif" align="left" valign="top"><table width="150" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td colspan="2"><a href="index.php"><img src="./images/nav/jf_nav_logo.gif" width="150" height="210" alt="jans2en furniture" border="0"></a></td>
                    </tr>

<!--
EOT;
foreach ($LEFT_MENU_ARY as $k=>$v) { 
    if ($menu_id == $k) { 
print <<<EOT
-->
					<tr>
                      <td><a href="{$v['url']}"><img src="./images/nav/{$v['pic']}-active.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>


<!--
EOT;
	} else {
print <<<EOT
--> 

					<tr>
                      <td><a href="{$v['url']}" onMouseOver="MM_swapImage('jf_nav_menu_$k','','./images/nav/{$v['pic']}-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/nav/{$v['pic']}.gif" alt="{$v['name']}" name="jf_nav_menu_$k" width="150" height="20" id="jf_nav_menu_$k" border="0"></a></td>
                    </tr>

<!--
EOT;
	}
} 
print <<<EOT
--> 

                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td width="568" align="left" valign="top" background="./images/colour/jf_colour_navy_07.gif"><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td bgcolor="FFFFFF" align="left" valign="middle" class="breadcrumb" height="14">&nbsp;<a href='index.php'>Home</a>&gt;New Items</td>
                    </tr>
                  </table>
                  <div><img src="{$guide_pic}" alt="How To Order" name="jf_section_header_placer" width="568" height="95" id="jf_section_header_placer"></div>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td bgcolor="FFFFFF" width="548"><div><img name="" src="./images/spacer.gif" width="538" height="5" alt=""></div>
                        <table width="538" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td class="show_title">$category_name</td>
                          </tr>
                          <tr>
                            <td background="./images/colour/jf_colour_navy_100.gif"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                          </tr>
                          <tr>
                            <td align="center" class="pageTitleText">{$page_show['str']}</td>
                          </tr>
                          <tr>
                            <td align="left" class="pageTitleText">A wish list is a list of items and pictures that you can email to your customer.<br>You can also create a wish list to select and store your own collection for easy ordering.</td>
                          </tr>
                          <tr>
                            <td align="center" class="pageListings">{$page_show['pagelink']}</td>
                          </tr>
                        </table>
                        <div><img name="" src="./images/spacer.gif" width="538" height="5" alt=""></div></td>
                      <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" width="1"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="2" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" height="1" colspan="4"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="2" alt=""></td>
                    </tr>
                  </table>
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <form action="cart_view.php" method="post" name="form1" onSubmit="return validate(this)" target="addtocontentiframe">
    	    	  <input type="hidden" name="act" value="adddate">
    	    	  <input type="hidden" name="inventoryid" value="0">
    	    	  <input type="hidden" name="inventorytype" value="0">
    	    	  <input type="hidden" name="intype" value="0">
    	    	  <input type="hidden" name="js" value="1">
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"></td>
                      <td width="136"></td>
                      <td width="136"></td>
                      <td width="136"></td>
                      <td width="136"></td>
                      <td width="4"></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>

               
<!--
EOT;
$index = 1;
foreach ($photo_ary as $k=>$v) {
    $str = '';
    if ($index%4 == 0 && $index>3) {
        $str       = '<td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>';
        
    } else {
        $str = '';    
    }
    $start_limit_1 = $start_limit+$index;
    if (trim($v['small_pic']) == "" || !file_exists("./zh/attachments/" . $v['small_pic'])) {
        $v['small_pic'] = 'no.gif';
    }
    /*$price_show = '';
    if ($jansen_type==2) {
    	$price_show = '<div>MCP: ' . (float)$v['price_1'] . ' (USD)</div>
	                   <div>DCP: ' . (float)$v['price_2'] . ' (USD)</div>';
    } elseif ($jansen_type == 1) {
    	$price_show = '<div>HKWSP: ' . (float)$v['price_3'] . ' (HKD)</div>';
    }*/
    
    $price_show = '';
    if ($jansen_type==2) {
    	$v['price_2'] = number_format($v['price_2'], 2, '.', ',');
    	/*$price_show = '<div>MCP: ' . (float)$v['price_1'] . ' (USD)</div>
	                   <div>DCP: ' . (float)$v['price_2'] . ' (USD)</div>';*/
    	$price_show = '<div>USD : ' . $v['price_2'] . '</div>';
    } elseif ($jansen_type == 1) {
    	$v['price_3'] = number_format($v['price_3'], 2, '.', ',');
    	//$price_show = '<div>HKWSP: ' . (float)$v['price_3'] . ' (HKD)</div>';
    	$price_show = '<div>HKD : ' . $v['price_3'] . ' </div>';
    }
    $new_show = '';
    if ($v['new_flag'] == 1) {
        $new_show = '&nbsp;&nbsp;<span class="new_show">new!</span>';
    }
	$product_name_show = '';
	if($v['name']!='')
	{
		$product_name_show = '<div style=\"min-height:30px;height:30px;overflow:hidden;line-height:15px;\">'.$v['name'].'</div>';
	}
print <<<EOT
-->    	

    	              <td align="center">
    	                <table width="136" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><img name="" src="./images/spacer.gif" width="115" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><div><a href="product_details.php?categoryid=10001&pid={$v['id']}&fid=$fid&new=1#atpic"><img src="./zh/attachments/{$v['small_pic']}" alt="Image of {$v['id']}" name="jf_product_images_sm_image_{$v['id']}" width="113" height="113" class="picture" id="jf_product_images_sm_image_{$v['id']}" border="0"></a></div>
                              <div><img src="./images/spacer.gif" width="115" height="5" alt=""></div>
                              <div align="left"><a href='product_details.php?categoryid=10001&pid={$v['id']}&fid=$fid&new=1#atpic'>{$v['code']}</a>{$new_show}</div>
                              <div><img src="./images/spacer.gif" width="115" height="5" alt=""></div>
                              <!--div><a href="product_details.php?categoryid=1001&pid={$v['id']}&fid=$fid" onMouseOver="MM_swapImage('jf_button_view_image_{$v['id']}','','./images/button/jf_button_view_image-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_view_image.gif" alt="View Image for item " name="jf_button_view_image_{$v['id']}" width="115" height="15" border="0" id="jf_button_view_image_{$v['id']}"></a></div-->
                              $product_name_show
                              $price_show
                              
                              <div>Order Qty: <input class="form" name=p_num[{$v['id']}] size="2" value="" /></div>
                    		  <div><a href="javascript:;" onclick="addWishlist('{$v['id']}', '{$v['code']}')"><img src="./images/button/jf_button_wishlist.gif" alt="Add to Wishlist" width="82" height="13" border="0" id="jf_button_wishlist_{$v['id']}"></a></div>
                            </td>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="115"><img name="" src="./images/spacer.gif" width="115" height="10" alt=""></td>
                            <td bgcolor="FFFFFF" width="10"><img name="" src="./images/spacer.gif" width="10" height="10" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                          </tr>
                          <tr>
                            <td width="10" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                            <td background="./images/colour/jf_colour_navy_15.gif" width="115"><img name="" src="./images/spacer.gif" width="115" height="1" alt=""></td>
                            <td background="./images/colour/jf_colour_navy_15.gif" width="10"><img name="" src="./images/spacer.gif" width="10" height="1" alt=""></td>
                            <td width="1" align="left" valign="top" background="./images/colour/jf_colour_navy_15.gif"><img name="" src="./images/colour/jf_colour_navy_15.gif" width="1" height="1" alt=""></td>
                          </tr>
                        </table>
                      </td>
                      $str

<!--
EOT;
    $index++;
} 
print <<<EOT
-->                                                          
                      
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td align="left"><img name="" src="./images/spacer.gif" width="136" height="4" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    
<!--
EOT;
if (!empty($photo_ary)) {
print <<<EOT
-->                     
                    
                    <tr height=20 valign="middle"><td colspan=5 align="right"><input type="image" onMouseOver="MM_swapImage('jf_button_add_all_to_cart','','./images/button/jf_button_add_all_to_container-over.gif',1)" onMouseOut="MM_swapImgRestore()" src="./images/button/jf_button_add_all_to_container.gif" alt="Login" name="jf_button_add_all_to_cart" width="120" height="20" border="0" id="jf_button_add_all_to_cart">&nbsp;</td><td width="4"></td></tr>
                  
<!--
EOT;
} else {
print <<<EOT
-->      
                    <tr height=20 valign="middle"><td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td><td colspan=5 align="left" class=titles>&nbsp;No product in this category.</td></tr>
<!--
EOT;
} 
print <<<EOT
--> 
                    
                  </table>
                  </form> 
                  
                  <table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td bgcolor="FFFFFF" width="548"><table width="548" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="548" height="14" align="center" valign="middle" class="pageListings">{$page_show['pagelink']}</td>
                          </tr>
                        </table></td>
                      <td bgcolor="FFFFFF" width="5"><img name="" src="./images/spacer.gif" width="5" height="5" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" width="1"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="4" alt=""></td>
                    </tr>
                    <tr>
                      <td width="5"><img name="" src="./images/spacer.gif" width="5" height="2" alt=""></td>
                      <td  background="./images/colour/jf_colour_navy_15.gif" align="left" valign="top" height="1" colspan="4"><img name="" src="./images/colour/jf_colour_navy_07.gif" width="1" height="1" alt=""></td>
                      <td width="4"><img name="" src="./images/spacer.gif" width="4" height="2" alt=""></td>
                    </tr>
                  </table>
                  
                  <div><img name="" src="./images/spacer.gif" width="568" height="4" alt=""></div>
                  
                  <iframe name='addwishlistiframe' width=0 height=0 src="about:blank" id='addwishlistiframe'></iframe>
                  <iframe name='addtocontentiframe' width=0 height=0 src="about:blank" id='addtocontentiframe'></iframe>
                  
                  <div><img name="" src="./images/spacer.gif" width="10" height="2" alt=""></div></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
              <tr>
                <td background="./images/nav/jf_nav_main_bkgd.gif" wid><img name="" src="./images/spacer.gif" width="150" height="20" alt=""></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                <td><table width="568" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                    <tr>
                      <td align="left" valign="middle" height="18"></td>
                      <td align="right" valign="middle" height="18"><a href="#top" onMouseOver="MM_swapImage('jf_button_back_to_top','','./images/button/jf_button_back_to_top-over.gif',1)" onMouseOut="MM_swapImgRestore()"><img src="./images/button/jf_button_back_to_top.gif" alt="Back to top" name="jf_button_back_to_top" width="70" height="13" border="0" id="jf_button_back_to_top"></a></td>
                    </tr>
                    <tr>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                      <td background="./images/colour/jf_colour_navy_100.gif" height="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
                    </tr>
                  </table></td>
                <td background="./images/colour/jf_colour_navy_100.gif" width="1"><img name="" src="./images/spacer.gif" width="1" height="1" alt=""></td>
              </tr>
            </table>
            <div><img name="" src="./images/spacer.gif" width="720" height="10" alt=""></div></td>
          <td bgcolor="FFFFFF" width="10"><img src="./images/spacer.gif" width="10" height="10" alt=""></td>
          <td background="./images/colour/jf_colour_gold_100.gif" width="1"><img src="./images/spacer.gif" width="1" height="1" alt=""></td>
        </tr>
        
<!--
EOT;
?>-->